<template>
    <div>
        <h2>{{infu.title}}</h2>
        <div v-html="infu.content"></div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            id:this.$route.params.id,
            infu:{}
        }
    },
    created() {
        this.getinfu()
    },
    methods: {
        getinfu(){
            this.$http.get('api/goods/getdesc/'+this.id).then(rus=>{
                if(rus.body.status==0){
                    this.infu=rus.body.message[0]
                }
            })
        }
    },

}
</script>
<style lang="sass" scoped>

</style>
